[HVM] Save/restore: remove bogus "valid state" check
authorTim Deegan <Tim.Deegan@xensource.com>
Thu, 1 Mar 2007 14:00:05 +0000 (14:00 +0000)
committerTim Deegan <Tim.Deegan@xensource.com>
Thu, 1 Mar 2007 14:00:05 +0000 (14:00 +0000)
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
tools/libxc/xc_hvm_save.c

index c8e2b8eecba0db61a8a76cdf985922089ee7bbb5..d1b44bd1c66233ce1868b719e781114663e15cce 100644 (file)
@@ -339,14 +339,7 @@ int xc_hvm_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters,
     }
     shared_info_frame = info.shared_info_frame;
 
-    /* A cheesy test to see whether the domain contains valid state. */
-    if (ctxt.ctrlreg[3] == 0)
-    {
-        ERROR("Domain is not in a valid HVM guest state");
-        goto out;
-    }
-
-   /* cheesy sanity check */
+    /* cheesy sanity check */
     if ((info.max_memkb >> (PAGE_SHIFT - 10)) > max_mfn) {
         ERROR("Invalid HVM state record -- pfn count out of range: %lu",
             (info.max_memkb >> (PAGE_SHIFT - 10)));